package com.example.qxfw.ybzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.qxfw.common.entity.xt.PermissionsRoles;
import com.example.qxfw.ybzz.mapper.PermissionsRolesMapper;
import com.example.qxfw.ybzz.service.PermissionsRolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionsRolesServiceImpl implements PermissionsRolesService {

    @Autowired
    private PermissionsRolesMapper permissionsRolesMapper;

    @Override
    public List<PermissionsRoles> getList(String permission) {
        QueryWrapper<PermissionsRoles> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("permissionid",permission);
        List<PermissionsRoles> permissionsRoles = permissionsRolesMapper.selectList(queryWrapper);
        return permissionsRoles;
    }
}
